package cn.pw.test.com.news.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import cn.pw.test.com.news.R;
import cn.pw.test.com.news.bean.CurrencyNewsletterBean;

public class CurrencyNewsletterAdapter extends BaseQuickAdapter<CurrencyNewsletterBean, BaseViewHolder> {

    public CurrencyNewsletterAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, CurrencyNewsletterBean item) {
        helper.setText(R.id.newsletter_item_time, item.getTime());
        helper.setText(R.id.newsletter_item_content, item.getContent());
    }
}
